import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-04-16
 * Time: 10:40
 */
public class Demo2_1 {
    public static void main(String[] args) throws IOException {
        File f=new File(".a.text");
        f.createNewFile();//创建文件
        System.out.println(f.exists());
        System.out.println(f.isFile());
        System.out.println(f.isDirectory());
    }
}
